#include"customer.h"
#include<cstdlib>
namespace CUSTOMER
{
	void Customer::set(long time)
	{
		_arrive = time;
		_time = rand() % 3 + 1;
	}
	Customer::Customer()
		:_time(0),
		_arrive(0) 
	{}
	int Customer::when() const
	{
		return _arrive;
	}
	int Customer::howlong() const
	{
		return _time;
	}
}